public class Computer {
    private String cpu;
    private String memeory;
    public String screen;
    String brand;   //default属性

    public Computer(String brand, String cpu, String memeory, String screen) {
        this.brand = brand;
        this.cpu = cpu;
        this.memeory = memeory;
        this.screen = screen;
    }

    public void Boot() {
        System.out.println(brand +"开机~~~");
    }

    public void PowerOff() {
        System.out.println("关机");
    }

    public void Surflinternet() {
        System.out.println("上网");
    }
}


